0ac8285ad76fbb973946e656f7f27ab0e7951111,difido-server/src/main/java/il/co/topq/report/business/elastic/ESController.java,ESController,onExecutionDeletedEvent,#ExecutionDeletedEvent#,63
Before Change
log.error("Failed deleting all tests of execution with id " + executionDeletedEvent.getExecutionId()
+ " from the ElasticSearch due to status " + status);
}
log.debug("All tests of execution with id " + executionDeletedEvent.getExecutionId()
+ " were deleted with status " + status);
}
@EventListener
After Change
for (ElasticsearchTest test : testsToDelete) {
DeleteResponse response = ESUtils.delete(Common.ELASTIC_INDEX, TEST_TYPE, test.getUid());
if (!response.isFound()) {
log.warn("Test of execution " + executionDeletedEvent.getExecutionId() + " with id " + test.getUid()
+ " was not found for deletion");
}
}